/**
 * @Author: 健聪
 * @Description: break and continue
 * @Date: 2024/1/11
 */
void main() {
  var list = [1, 2, 3];
  for (var item in list) {
    // if(item != 2) {
    //   print(item);
    // }
    if (item == 2) {
      // break;
      continue;
    }
    print(item);
  }
  print("---------------");
  var list2 = [4, 5, 6];
  for (var item1 in list) {
    if(item1 == 2) {
      // break;
      continue;
    }
    for(var item2 in list2) {
      if(item2 == 5){
        // break;
        continue;
      }
      print(item2);
    }
  }
}
